-- GENERATED SPELL FOR [Summoner Skartax] --


function spell0_21207(pUnit, Event) --@Incinerate,n/a--
pUnit:FullCastSpellOnTarget(38401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21207', 2500, 1)
end

function spell1_21207(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(12471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21207', 3000, 1)
end

function Sorts_21207(pUnit, Event)
local choix_sorts_21207 = math.random(0, 1)
if choix_sorts_21207 == 0 then
pUnit:RegisterEvent('spell0_21207', 1, 1)
end
if choix_sorts_21207 == 1 then
pUnit:RegisterEvent('spell1_21207', 1, 1)
end
end

function mob21207_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21207', math.random(1500, 3000), 1)
end

function mob21207_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21207_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21207_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21207, 1, 'mob21207_Action')
RegisterUnitEvent(21207, 2, 'mob21207_Leave')
RegisterUnitEvent(21207, 3, 'mob21207_Kill')
RegisterUnitEvent(21207, 4, 'mob21207_Die')
